package com.guigu.www.pojo;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.Version;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 题库表
 * </p>
 *
 * @author yb
 * @since 2021-06-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TQuestionBank extends Model<TQuestionBank> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "qbid", type = IdType.AUTO)
    private Integer qbid;
    /**
     * 题库名称
     */
    private String qbname;
    /**
     * 题库类型
     */
    private String type;
    /**
     * 适用性别
     */
    private String gender;
    /**
     * 是否必填
     */
    private String required;
    /**
     * 创建时间
     */
    private Date createtime;
    /**
     * 修改时间
     */
    private Date updatetime;
    /**
     * 问卷id
     */
    private Integer questid;

  /*  private TQuestionnaire tQuestionnaire;*/
    @Override
    protected Serializable pkVal() {
        return this.qbid;
    }

}
